#include<stdio.h>
int main()
{
    float w;
    printf("please input the wage:");
    scanf("%f",&w);
    printf("the tax you need to pay is:");
    if(w<=0)
        printf("A wrong number! Please try again!\n");
    if(w>0&&w<1000)
        printf("Don't need to pay the tax");
    if(w>=1000&&w<2000)
        printf("%.2f", (w-1000)/20);
    if(w>=2000&w<3000)
        printf("%.2f", (w-2000)/10+50);
    if(w>=3000&&w<4000)
        printf("%.2f", 3*(w-3000)/20+150);
    if(w>=4000&&w<5000)
        printf("%.2f", (w-4000)/5+300);
    if(w>=5000)
        printf("%.2f", (w-5000)/4+500);
}